<?php
require_once 'buildCurl.php';

$res = json_decode(file_get_contents('php://input'), true);

$url = "http://211.82.48.36/login";
$session = "";

$myCurl = new MyCurl($url, $session);
$result =  $myCurl->getResult();
$httpCode = $myCurl->getHttpCode();


$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_COOKIE, $session);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_ACCEPT_ENCODING, "gzip,deflate");

$result = curl_exec($curl);
$httpCode = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);

echo $httpCode;
